from django.contrib import admin
from .models import *


@admin.register(Contact)
class ContactAdmin(admin.ModelAdmin):
    # 每页显示数据
    list_per_page = 10
    # 显示列
    list_display = ["id", "user_name", "user_tel", "message", "is_solve"]
    # 过滤器
    list_filter = ["is_solve","is_delete"]
    # 搜索框
    search_fields = ["user_name", "user_tel", "message"]

